package com.springcloud.controller;

import com.springcloud.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * TODO
 *
 * @author 肖嘉亮
 * @version 1.0
 * @date 2021/5/13 9:21
 */
@RestController
public class SendMessageController {

    @Resource
    private IMessageProvider messageProvider;

    /**
     * 发送消息
     * @return
     */
    @GetMapping(value = "sendMessage")
    public String sendMessage(){
        return messageProvider.send();
    }


}
